package homework;

import java.sql.SQLOutput;
import java.util.Scanner;
class Base {

	private int x;
	private int y;

	public Base(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

}

class Sub extends Base {

	private int z;
	public Sub (int x,int y,int z) {
		super(x,y);
		this.z=z;
	}

	public int getZ() {
		return z;
	}

	public int calculate() {
		return super.getX() * super.getY() * this.getZ();
	}

}
 class Aninmal {
	public Aninmal() {
		System.out.println("1111");
	}
}
 class Dog extends Aninmal {
	public static void main(String[] args) {
		new  Dog();
		new Aninmal();
	}
}
//这里还是静态代码块和实例代码块和构造代码块的执行顺序
//new y相当于实例代码块，实例对象
//执行顺序在构造代码前面
class X{
	//Y y=new Y();//1
	public X(){//2
		System.out.print("X");
	}
}
class Y{
	public Y(){//3
		System.out.print("Y");
	}
}
class Z extends X{
	Y y=new Y();//4
	public Z(){//5
		System.out.print("Z");
	}
	public static void main(String[] args) {
		new Z();
	}
}
public class test1 {
	public static void main1(String[] args) {
		Scanner scanner=new Scanner(System.in);
		while(scanner.hasNext()) {
			int x = scanner.nextInt();
			int y = scanner.nextInt();
			int z = scanner.nextInt();
			Sub sub = new Sub (x,y,z);
			System.out.println(sub.calculate());
		}
	}

	public static void main(String[] args) {
	}
}
